You are asking a question that no one can answer. It is easy to skim over the question of God's allowance of suffering when life is good and it is a remote possibility. When you or someone quite close to you suffers, it is quite a different story.
It changes from a philosophical interest to an up close and personal ache that is never satisfied. I heard a funeral sermon lately where the minister stated that it just doesn't make any sense. Kinda surprised me that he would admit that.
This question used to eat away at me for a long time. I finally had to realize that there is just not a good or satisfying answer.